package com.isolation.harassed.view;

import com.isolation.harassed.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

public class ProfilePage extends Fragment {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		return inflater.inflate(R.layout.page_more, container, false);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		Toast.makeText(getActivity(), getText(R.string.msg_more_content_empty),
				Toast.LENGTH_SHORT).show();
	}

	@Override
	// 可用这个函数实现Fragment的懒加载
	public void setUserVisibleHint(boolean isVisibleToUser) {
		super.setUserVisibleHint(isVisibleToUser);
		Log.v("sampleLogger", ProfilePage.class.getSimpleName()
				+ " setUserVisibleHint( " + isVisibleToUser + " )");
	}
}
